//
//  RNOLHomeNoobSpecialView.m
//  RongNiuOnline
//
//  Created by apple on 2018/4/9.
//  Copyright © 2018年 rongniu. All rights reserved.
//

#import "RNOLHomeNoobSpecialView.h"

@interface RNOLHomeNoobSpecialView()
//投资计划标题
@property (weak, nonatomic) IBOutlet UILabel *planTitleLabel;
//利率
@property (weak, nonatomic) IBOutlet UILabel *rateValueLabel;
//剩余
@property (weak, nonatomic) IBOutlet UILabel *residueLabel;
//期限
@property (weak, nonatomic) IBOutlet UILabel *limitDateLabel;
//立即投资按钮
@property (weak, nonatomic) IBOutlet UIButton *ImmediatelyInvestButton;

@end


@implementation RNOLHomeNoobSpecialView



- (void)awakeFromNib{
    [super awakeFromNib];
    [self.ImmediatelyInvestButton setBackgroundColor:kAppMainColor forState:UIControlStateNormal];
    [self.ImmediatelyInvestButton setBackgroundColor:[kAppMainColor colorWithAlphaComponent:0.5] forState:UIControlStateHighlighted];
    self.ImmediatelyInvestButton.layer.masksToBounds = NO;
    [self.ImmediatelyInvestButton setAllCorner: self.ImmediatelyInvestButton.width/2.0 - 3.0];
    [self.ImmediatelyInvestButton setLayerShadow:RGBA(56, 108, 145,0.5) offset:CGSizeMake(3, 3) radius:5];

}



//立即投资
- (IBAction)immediatelyInvestAction:(UIButton *)sender {
    !self.inverstBlock? : self.inverstBlock();
}


@end
